package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class InPredicateValue {

    private int beginIndex;
    private int endIndex;
    private Subquery tableSubquery;
    private List<RowValueExpression> inValueList;

    public InPredicateValue(Subquery tableSubquery) {
        this.beginIndex = tableSubquery.getBeginIndex();
        this.endIndex = tableSubquery.getEndIndex();
        this.tableSubquery = tableSubquery;
    }

    public InPredicateValue(int beginIndex, int endIndex, List<RowValueExpression> inValueList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.inValueList = inValueList;
    }

    public int getBeginIndex() {
        return beginIndex;
    }

    public int getEndIndex() {
        return endIndex;
    }

    public Subquery getTableSubquery() {
        return tableSubquery;
    }

    public List<RowValueExpression> getInValueList() {
        return inValueList;
    }

}
